const app = getApp();
var url = app.globalData.Host_url;
Component({
  pageLifetimes:{
    
  },
  data: {
    haliti:1,
    selected: 0,
    color: "#7A7E83",
    selectedColor: "#3cc51f",
    list: [{
        pagePath: "/pages/index/index",
        iconPath: "/static/image/baxbat.png",
        selectedIconPath: "/static/image/baxbat-is.png",
        text: "باشبەت"
      },
      {
        pagePath: "/pages/turlar/turlar",
        iconPath: "/static/image/turlar.png",
        selectedIconPath: "/static/image/turlar-is.png",
        text: "تۈرلەر"
      },
      {
        pagePath: "/pages/menig/menig",
        iconPath: "/static/image/menig.png",
        selectedIconPath: "/static/image/menig-is.png",
        text: "مېنىڭ"
      }
    ]
  },
  ready: function() {
  },
  attached() {
    
  },
  methods: {
    switchTab(e) {
      const data = e.currentTarget.dataset
      const url = data.path
      wx.switchTab({
        url
      })
      this.setData({
        selected: data.index
      })
    }
  }
})